package com.sxpcwlkj.sxpcwlkj.entity.bo;

import com.sxpcwlkj.common.utils.DateUtil;
import com.sxpcwlkj.framework.config.ValidatedGroupConfig;
import java.io.Serial;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import io.github.linpeilie.annotations.AutoMapper;
import org.springframework.format.annotation.DateTimeFormat;
import com.sxpcwlkj.sxpcwlkj.entity.StoreMemberAddress;
import com.sxpcwlkj.datasource.entity.BaseEntity;

/**
* 会员收货地址Bo
*
* @author 西决
* @Doc <a href='https://www.mmsadmin.com'>MMS文档</a>
*/
@Data
@AutoMapper(target = StoreMemberAddress.class, reverseConvertGenerate = false)
@EqualsAndHashCode(callSuper=false)
public class StoreMemberAddressBo  extends BaseEntity {
	@Serial
	private static final long serialVersionUID = 1L;

	/**
	 * ID
	 */
	@NotBlank(message = "ID不能为空" ,groups = {ValidatedGroupConfig.update.class})
	private String id;
	/**
	 * 会员ID
	 */
	@NotBlank(message = "会员ID不能为空" ,groups = {ValidatedGroupConfig.insert.class,ValidatedGroupConfig.update.class})
	private String memberId;
	/**
	 * 收货人
	 */
	@NotBlank(message = "收货人不能为空" ,groups = {ValidatedGroupConfig.insert.class,ValidatedGroupConfig.update.class})
	private String name;
	/**
	 * 收货手机号
	 */
	@NotBlank(message = "收货手机号不能为空" ,groups = {ValidatedGroupConfig.insert.class,ValidatedGroupConfig.update.class})
	private String phone;
	/**
	 * 国家
	 */
	@NotBlank(message = "国家不能为空" ,groups = {ValidatedGroupConfig.insert.class,ValidatedGroupConfig.update.class})
	private String country;
	/**
	 * 省
	 */
	@NotBlank(message = "省不能为空" ,groups = {ValidatedGroupConfig.insert.class,ValidatedGroupConfig.update.class})
	private String province;
	/**
	 * 市
	 */
	@NotBlank(message = "市不能为空" ,groups = {ValidatedGroupConfig.insert.class,ValidatedGroupConfig.update.class})
	private String city;
	/**
	 * 区/县
	 */
	@NotBlank(message = "区/县不能为空" ,groups = {ValidatedGroupConfig.insert.class,ValidatedGroupConfig.update.class})
	private String district;
	/**
	 * 详细地址
	 */
	@NotBlank(message = "详细地址不能为空" ,groups = {ValidatedGroupConfig.insert.class,ValidatedGroupConfig.update.class})
	private String address;
	/**
	 * 是否默认
	 */
	@NotBlank(message = "是否默认不能为空" ,groups = {ValidatedGroupConfig.insert.class,ValidatedGroupConfig.update.class})
	private String isDef;
}
